package com.lastproject.dto;

import java.io.Serializable;

import java.util.Date;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.persistence.Lob;

//@ManagedBean
//@SessionScoped
public class CandidateDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3673537864742796093L;

	private int id;
	private String firstname;
	private String lastname;
	private Date birthdate;
	private String applyingFor;
	private String domain;
	private String statut;
	private String phoneNr;
	private String email;
	@Lob
	private byte[] cv;
	
	public CandidateDTO() {
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	public CandidateDTO(int id, String firstname, String lastname,
			Date birthdate, String applyingFor, String domain, String statut,
			String phoneNr, String email, byte[] cv, List<Integer> interviews) {
		super();
		this.id = id;
		this.firstname = firstname;
		this.lastname = lastname;
		this.birthdate = birthdate;
		this.applyingFor = applyingFor;
		this.domain = domain;
		this.statut = statut;
		this.phoneNr = phoneNr;
		this.email = email;
		this.cv = cv;
		
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public Date getBirthdate() {
		return birthdate;
	}
	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}
	public String getApplyingFor() {
		return applyingFor;
	}
	public void setApplyingFor(String applyingFor) {
		this.applyingFor = applyingFor;
	}
	public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	public String getStatut() {
		return statut;
	}
	public void setStatut(String statut) {
		this.statut = statut;
	}
	public String getPhoneNr() {
		return phoneNr;
	}
	public void setPhoneNr(String phoneNr) {
		this.phoneNr = phoneNr;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public byte[] getCv() {
		return cv;
	}
	public void setCv(byte[] cv) {
		this.cv = cv;
	}

	
}
